package com.example.myapplication.adp;

import android.content.Intent;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.myapplication.R;
import com.example.myapplication.activity.GetDetailAty;
import com.example.myapplication.database.GetItem;
import com.example.myapplication.util.ActivityStack;

import java.util.List;

public class RecycleListAdp extends BaseQuickAdapter<GetItem, BaseViewHolder> {

    public RecycleListAdp(@Nullable List<GetItem> data) {
        super(R.layout.fgm_recycle_list_item ,data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GetItem s) {
        baseViewHolder.setText(R.id.itemTitle,s.getTitle());
        baseViewHolder.setText(R.id.itemTime,s.getTime());
        baseViewHolder.setText(R.id.itemCommentNum,s.getCommentNum()+"");
        baseViewHolder.setText(R.id.itemTag,s.getTag()+"");

    }
}
